<?php
use app\models\SentVerifyForm;
use yii\widgets\ActiveForm;
use yii\helpers\Html;

/* @var $this UserController */
/* @var $model User */
$this->title = yii::t('Site', 'Retrieve Pwd');
$this->params['breadcrumbs'][] = ['label' => Yii::t('User', 'Users')];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php if(isset($error)):?>
<div class="alert alert-danger">
    <?= Yii::t('Site','Error:').' '.$error;?>
</div>
<?php endif;?>
<div class="col-lg-4">
</div>
<div class="col-lg-4">
<h3 style="text-align:center"><?php echo yii::t('user/views','Retrieve Password')?></h3>
<div class="getPassword">
    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'username')->textInput(['maxlength' => 26]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => 26]) ?>

    <div class="col-lg-6" style="padding-left:0px">
    <?= $form->field($model, 'verifyCode')->textInput() ?>
    </div>
    <div class="col-lg-6" style="padding:24px 0px 0px 0px;">
    <a class="btn btn-default" id="retrievePassword" style="width:100%;" url="<?= yii::$app->urlManager->createUrl('verify/retrievepassword')?>" ><?php echo yii::t('User','Get the verifyCode')?></a>
    </div>
    <div class="form-group">
        <?= Html::submitButton(Yii::t('User', 'Submit'), ['class' => 'btn btn-primary', 'style'=>'width:100%']) ?>
    </div>

    <?php ActiveForm::end(); ?>
</div>
</div>
